function createVueComponent (component) {
    const { createApp } = Vue;
    const app = createApp({});
    app.component(component.name, {
        template: component.template,
        data: () => component.data || {},
        setup: (prop) => component.setup ? component.setup(setup) : () => {}, 
        props: component.props || {},
        methods: component.methods,
        onMounted: component.onMounted,
    });
    return app.component(component.name);
};